package com.gticket.orderservice.service;

import com.gticket.orderservice.pojo.OrderItems;
import com.gticket.orderservice.pojo.Orders;

import java.util.List;

/**
 * @Author: 伴你时光尽头
 * @Date: 2019/11/19 17:03
 */
public interface OrderItemService {

    /**
     * 通过订单项对象中的as_id来查找分院id   用于创建订单时
     *
     * @param items
     * @return
     */
    public Integer selectCinema_idByFs_id(OrderItems items);

    /**
     * 创建订单项
     *
     * @param item
     */
    public void addOrderItem(OrderItems item);

    /**
     * 通过订单项对象中的ds_id来查找分院名称   用于创建订单时
     *
     * @param items
     * @return
     */
    public String selectCinema_nameByFs_id(OrderItems items);

    /**
     * 根据order_num查询所有的订单项并封装成List<OrderItems>集合返回
     *
     * @param orders 封装有数据库前缀名和order_num的Order对象
     * @return
     */
    public List<OrderItems> getItemsByOrder_num(Orders orders);
}
